package control.service;

import com.baomidou.mybatisplus.extension.service.IService;
import control.module.po.authmanage.RoleAuth;

import java.util.List;

/**
 * <p>
 * 角色权限表 服务类
 * </p>
 *
 * @author cyj
 * @since 2020-10-21
 */
public interface IRoleAuthService extends IService<RoleAuth> {

    /**
     * Remove by role id boolean
     *
     * @param roleId role id
     * @return the boolean
     * @description: 删除此roleId下的所有权限
     */
    boolean removeByRoleId(Integer roleId);

    /**
     * Gets by role id *
     *
     * @param roleId role id
     * @return the by role id
     * @description: 获取roleId下的所有权限
     */
    List<RoleAuth> getByRoleId(Integer roleId);
}
